<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
    <title><fmt:message key="fileAsset" /></title>
</head>
<body>
    <h1><fmt:message key="fileAsset" /></h1>
    <table>
        <tbody>
  
			<tr>
				<th>&nbsp;</th>
				<td>
					<img src="${adminHttpUrl}${fileAsset.path}" width="160" height="160" />
				</td>
			</tr>
			<tr>
                <th><fmt:message key="fileAsset_fileName" /></th>
                <td>
                    <c:out value="${fileAsset.fileName}"/>                
				</td>
            </tr>
            <tr>
                <th><fmt:message key="fileAsset_fileSize" /></th>
                <td>
                    <c:out value="${fileAsset.fileSize}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="fileAsset_author" /></th>
                <td>
                    <c:out value="${fileAsset.author}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="fileAsset_publishDate" /></th>
                <td>
                    <c:out value="${fileAsset.publishDate}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="fileAsset_showOnMenu" /></th>
                <td>
                    <c:out value="${fileAsset.showOnMenu}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="fileAsset_title" /></th>
                <td>
                    <c:out value="${fileAsset.title}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="fileAsset_friendlyName" /></th>
                <td>
                    <c:out value="${fileAsset.friendlyName}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="fileAsset_path" /></th>
                <td>
                    <c:out value="${fileAsset.path}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="fileAsset_modDate" /></th>
                <td>
                    <c:out value="${fileAsset.modDate}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="fileAsset_modUser" /></th>
                <td>
                    <c:out value="${fileAsset.modUser}"/>                </td>
            </tr>
            <tr>
                <th><fmt:message key="fileAsset_sortOrder" /></th>
                <td>
                    <c:out value="${fileAsset.sortOrder}"/>                </td>
            </tr>

        </tbody>
        <tfoot>
            <tr>
                <td colspan="2">
                    <div class="buttons">
                        <c:url var="confirmDeleteUrl" value="/domain/fileAsset/confirmDelete.action">
                            <c:param name="fileAsset.inode" value="${fileAsset.inode}"/>
                        </c:url>
                        <a id="confirmDeleteUrl" href="${confirmDeleteUrl}"><span><fmt:message key="label.link.delete"/></span></a>
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.AjaxEventDecoration({
                                elementId: "confirmDeleteUrl",
                                event: "onclick",
                                popup: "true",
                                params: { decorator: "none" }
                            }));
                        </script>
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>
    <h2><fmt:message key="label.related.content"/></h2>
	<div>
		<table class="listEntities">
			<thead>
				<tr>
					<th scope="col">&nbsp;</th>
					<th scope="col"><fmt:message key="contentlet_title"/></th>
					<th scope="col"><fmt:message key="contentlet_modDate"/></th>
					<th scope="col"><fmt:message key="contentlet_modUser"/></th>
					<th scope="col"><fmt:message key="contentlet_folderInode"/></th>
					<th scope="col">&nbsp;</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${contentletList}" var="content">
				<tr>
					<td>
						<img src="${adminHttpUrl}${content.fileAsset.path}" width="60" heigth="60" />
					</td>
					<td>
						<c:url var="contentUrl" value="/domain/contentlet/show">
							<c:param name="contentlet.inode" value="${content.inode}" />
						</c:url>
						<a href="${contentUrl}"><c:out value="${content.title}"/></a>
					</td>
					<td>
						<c:out value="${content.modDate}"/>
					</td>
					<td>
						<c:out value="${content.modUser}"/>
					</td>
					<td>
						<c:url var="folderUrl" value="/domain/folder/show">
							<c:param name="folder.inode" value="${content.folderInode}" />
						</c:url>
						<a href="${folderUrl}"><c:out value="${content.folder.title}"/></a>
					</td>
				</tr>
			</c:forEach>
			</tbody>
		</table>
	</div>

</body>
